package com.dianwoba.core.solr;

import java.io.Serializable;
import java.util.Date;

import org.apache.solr.client.solrj.beans.Field;

/**
 * 索引DTO
 * @author du
 * @since dianwoba 2.0
 * @date 2013-7-18
 */
public class SolrDTO implements Serializable{
	
	/**
	 * SID
	 */
	public static final long serialVersionUID = 1L;

	//////////////////////////////////////
	///////		   实体字段		//////////
	//////////////////////////////////////
	
	/**
	 * id
	 */
	@Field
	public String id;
	
	/**
	 * 实体id
	 */
	@Field
	public String entityId;
	
	/**
	 * 实体类型 1：商家  2:菜 3：商品
	 */
	@Field
	public int entityType;
	
	/**
	 * 实体名称
	 */
	@Field
	public String entityName;
	
	/**
	 * 实体提示名称
	 */
	@Field
	public String entitySuggName;
	
	/**
	 * 实体营业状态
	 */
	@Field
	public int entityState;
	
	/**
	 * 实体图片
	 */
	@Field
	public String entityImage;
	
	/**
	 * 实体APP图片
	 */
	@Field
	public String entityAppImage;
	
	/**
	 * 头字母拼音
	 */
	@Field
	public String pinyin;
	
	/**
	 * 全拼
	 */
	@Field
	public String quanpin;
	
	/**
	 * 点评次数
	 */
	@Field
	public int cmtNum;
	
	/**
	 * 连锁id
	 */
	@Field
	public String chainSupplierId;

	
	//////////////////////////////////////
	///////		   商家字段		//////////
	//////////////////////////////////////
	/**
	 * 商家id
	 */
	@Field
	public String shopId;
	/**
	 * 商家名
	 */
	@Field
	public String shopName;

	/**
	 * 城市id
	 */
	@Field
	public String cityId;
	
	/**
	 * 营业开始时间 hh:mm
	 */
	@Field
	public String openTime;
	
	/**
	 * 营业结束时间 hh:mm
	 */
	@Field
	public String closeTime;
	
	/**
	 * 休息开始时间 hh:mm
	 */
	@Field
	public String breakStart;
	
	/**
	 * 休息结束时间 hh:mm
	 */
	@Field
	public String breakEnd;
	
	/**
	 * 营业时间新字段 09:00-11:30|12:00-13:30|14:00-15:30
	 */
	@Field
	public String openTimeSection;
	
	/**
	 * 营业周期 0101011 周一至周日，1代表开门，0代表关门
	 */
	@Field
	public String openDateSection;
	
	/**
	 * 配送费基数
	 */
	@Field
	public int baseCost;
	
	/**
	 * 配送半径
	 */
	@Field
	public int radius;
	
	/**
	 * 默认配送半径
	 */
	@Field
	public int defaultRadius;
	
	/**
	 * 坐标
	 */
	@Field
	public String position;

	/**
	 * 1公里配送范围
	 */
	@Field
	public String scope1;
	
	/**
	 * 2公里配送范围
	 */
	@Field
	public String scope2;
	
	/**
	 * 3公里配送范围
	 */
	@Field
	public String scope3;
	
	/**
	 * 4公里配送范围
	 */
	@Field
	public String scope4;
	
	
	/**
	 *  订单配送方式:0-点我吧配送 1-商家配送
	 */
	@Field
	public int selfDeliver;
	/**
	 * 配送方式 0-普通 1-全城配送 2-便民商家 3-自定义配送半径商家
	 */
	@Field
	public int deliverType;
	
	/**
	 * 是否区域限制,0为不限制,1为限制
	 */
	@Field
	public int areaConstrained;
	
	/**
	 * 商家区域经纬度范围
	 */
	@Field
	public String areaScope;
	
	/**
	 * 商家评分
	 */
	@Field
	public float rating;
	
	/**
	 * 人均消费
	 */
	@Field
	public int averageCost;
	
	/**
	 * 是否团餐 0-否 1-仅团餐商家 2-共有商家
	 */
	@Field
	public int isGroupMeal;
	
	/**
	 * 是否下午茶0-否 1-是
	 */
	@Field
	public int isAfternoonTea;
	
	/**
	 * 商家点击数
	 */
	@Field
	public int hit;
	
	/**
	 * 区块
	 */
	@Field
	public String region;
	
	/**
	 * 中式简餐
	 */
	@Field
	public int supplierClass1;
	
	/**
	 * 中式炒菜
	 */
	@Field
	public int supplierClass2;
	
	/**
	 * 西式快餐
	 */
	@Field
	public int supplierClass3;
	
	/**
	 * 蛋糕甜点
	 */
	@Field
	public int supplierClass4;
	
	/**
	 * 活动id
	 */
	@Field
	public String activityId;
	
	/**
	 * 商家添加日期
	 */
	@Field
	public Date addDate;
	
	/**
	 * 推荐
	 */
	@Field
	public int recommend;
	
	/**
	 * 商家地址
	 */
	@Field
	public String address;
	
	/**
	 * 做餐时长
	 */
	@Field
	public int cookInterval;
	
	/**
	 * 最低消费
	 */
	@Field
	public int baseCharge;
	
	/**
	 * 是否可预订
	 */
	@Field
	public int orderable;
	
	/**
	 * 最近一周销售量
	 */
	@Field
	public int saleNum;	
	
	//////////////////////////////////////
	///////		      菜字段 		//////////
	//////////////////////////////////////
	/**
	 * 价格
	 */
	@Field
	public int price;
	
		
	//////////////////////////////////////
	///////		      商品字段 		//////////
	//////////////////////////////////////
	/**
	 * 规格
	 */
	@Field
	public String standard;

	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getEntityId() {
		return entityId;
	}


	public void setEntityId(String entityId) {
		this.entityId = entityId;
	}


	public int getEntityType() {
		return entityType;
	}


	public void setEntityType(int entityType) {
		this.entityType = entityType;
	}


	public String getEntityName() {
		return entityName;
	}


	public void setEntityName(String entityName) {
		this.entityName = entityName;
	}


	public String getEntitySuggName() {
		return entitySuggName;
	}


	public void setEntitySuggName(String entitySuggName) {
		this.entitySuggName = entitySuggName;
	}


	public String getEntityImage() {
		return entityImage;
	}


	public void setEntityImage(String entityImage) {
		this.entityImage = entityImage;
	}


	public String getEntityAppImage() {
		return entityAppImage;
	}


	public void setEntityAppImage(String entityAppImage) {
		this.entityAppImage = entityAppImage;
	}


	public String getPinyin() {
		return pinyin;
	}


	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}


	public String getQuanpin() {
		return quanpin;
	}


	public void setQuanpin(String quanpin) {
		this.quanpin = quanpin;
	}


	public String getShopName() {
		return shopName;
	}


	public void setShopName(String shopName) {
		this.shopName = shopName;
	}


	public String getCityId() {
		return cityId;
	}


	public void setCityId(String cityId) {
		this.cityId = cityId;
	}


	public String getOpenTime() {
		return openTime;
	}


	public void setOpenTime(String openTime) {
		this.openTime = openTime;
	}


	public String getCloseTime() {
		return closeTime;
	}


	public void setCloseTime(String closeTime) {
		this.closeTime = closeTime;
	}


	public String getBreakStart() {
		return breakStart;
	}


	public void setBreakStart(String breakStart) {
		this.breakStart = breakStart;
	}


	public String getBreakEnd() {
		return breakEnd;
	}


	public void setBreakEnd(String breakEnd) {
		this.breakEnd = breakEnd;
	}


	public int getBaseCost() {
		return baseCost;
	}


	public void setBaseCost(int baseCost) {
		this.baseCost = baseCost;
	}


	public int getRadius() {
		return radius;
	}


	public void setRadius(int radius) {
		this.radius = radius;
	}


	public int getDefaultRadius() {
		return defaultRadius;
	}


	public void setDefaultRadius(int defaultRadius) {
		this.defaultRadius = defaultRadius;
	}


	public String getPosition() {
		return position;
	}


	public void setPosition(String position) {
		this.position = position;
	}


	public int getSelfDeliver() {
		return selfDeliver;
	}


	public void setSelfDeliver(int selfDeliver) {
		this.selfDeliver = selfDeliver;
	}


	public int getDeliverType() {
		return deliverType;
	}


	public void setDeliverType(int deliverType) {
		this.deliverType = deliverType;
	}


	public int getAreaConstrained() {
		return areaConstrained;
	}


	public void setAreaConstrained(int areaConstrained) {
		this.areaConstrained = areaConstrained;
	}


	public String getAreaScope() {
		return areaScope;
	}


	public void setAreaScope(String areaScope) {
		this.areaScope = areaScope;
	}


	public float getRating() {
		return rating;
	}


	public void setRating(float rating) {
		this.rating = rating;
	}


	public int getAverageCost() {
		return averageCost;
	}


	public void setAverageCost(int averageCost) {
		this.averageCost = averageCost;
	}


	public int getIsGroupMeal() {
		return isGroupMeal;
	}


	public void setIsGroupMeal(int isGroupMeal) {
		this.isGroupMeal = isGroupMeal;
	}


	public int getIsAfternoonTea() {
		return isAfternoonTea;
	}


	public void setIsAfternoonTea(int isAfternoonTea) {
		this.isAfternoonTea = isAfternoonTea;
	}


	public int getHit() {
		return hit;
	}


	public void setHit(int hit) {
		this.hit = hit;
	}


	public String getRegion() {
		return region;
	}


	public void setRegion(String region) {
		this.region = region;
	}


	public int getPrice() {
		return price;
	}


	public void setPrice(int price) {
		this.price = price;
	}


	public String getStandard() {
		return standard;
	}


	public void setStandard(String standard) {
		this.standard = standard;
	}


	public String getShopId() {
		return shopId;
	}

	public void setShopId(String shopId) {
		this.shopId = shopId;
	}


	public int getSupplierClass1() {
		return supplierClass1;
	}


	public void setSupplierClass1(int supplierClass1) {
		this.supplierClass1 = supplierClass1;
	}


	public int getSupplierClass2() {
		return supplierClass2;
	}


	public void setSupplierClass2(int supplierClass2) {
		this.supplierClass2 = supplierClass2;
	}


	public int getSupplierClass3() {
		return supplierClass3;
	}


	public void setSupplierClass3(int supplierClass3) {
		this.supplierClass3 = supplierClass3;
	}


	public int getSupplierClass4() {
		return supplierClass4;
	}


	public void setSupplierClass4(int supplierClass4) {
		this.supplierClass4 = supplierClass4;
	}


	public int getCmtNum() {
		return cmtNum;
	}


	public void setCmtNum(int cmtNum) {
		this.cmtNum = cmtNum;
	}


	public String getChainSupplierId() {
		return chainSupplierId;
	}


	public void setChainSupplierId(String chainSupplierId) {
		this.chainSupplierId = chainSupplierId;
	}


	public String getActivityId() {
		return activityId;
	}


	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}


	public Date getAddDate() {
		return addDate;
	}


	public void setAddDate(Date addDate) {
		this.addDate = addDate;
	}


	public int getRecommend() {
		return recommend;
	}


	public void setRecommend(int recommend) {
		this.recommend = recommend;
	}


	public String getAddress() {
		return address;
	}


	public void setAddress(String address) {
		this.address = address;
	}


	public int getCookInterval() {
		return cookInterval;
	}


	public void setCookInterval(int cookInterval) {
		this.cookInterval = cookInterval;
	}

	public int getBaseCharge() {
		return baseCharge;
	}


	public void setBaseCharge(int baseCharge) {
		this.baseCharge = baseCharge;
	}


	public int getOrderable() {
		return orderable;
	}


	public void setOrderable(int orderable) {
		this.orderable = orderable;
	}


	public int getSaleNum() {
		return saleNum;
	}


	public void setSaleNum(int saleNum) {
		this.saleNum = saleNum;
	}


	public String getScope1() {
		return scope1;
	}


	public void setScope1(String scope1) {
		this.scope1 = scope1;
	}


	public String getScope2() {
		return scope2;
	}


	public void setScope2(String scope2) {
		this.scope2 = scope2;
	}


	public String getScope3() {
		return scope3;
	}


	public void setScope3(String scope3) {
		this.scope3 = scope3;
	}


	public String getScope4() {
		return scope4;
	}


	public void setScope4(String scope4) {
		this.scope4 = scope4;
	}


	public String getOpenTimeSection() {
		return openTimeSection;
	}


	public void setOpenTimeSection(String openTimeSection) {
		this.openTimeSection = openTimeSection;
	}


	public String getOpenDateSection() {
		return openDateSection;
	}


	public void setOpenDateSection(String openDateSection) {
		this.openDateSection = openDateSection;
	}


	public int getEntityState() {
		return entityState;
	}


	public void setEntityState(int entityState) {
		this.entityState = entityState;
	}

}
